package com.gitee.melin.bee.util;

import org.slf4j.helpers.MessageFormatter;

public class FormatUtils {

    public static String format(String format, Object... params) {
        String message = format;
        if (params.length > 0) {
            message = MessageFormatter.arrayFormat(format, params).getMessage();
        }

        return message;
    }
}
